﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Dune2013
{
    public class Recolector:Actor
    {
        public float maxSize = 2.0f;

        public Recolector(Behavior bh)
        {
            position = new Vector2(300,300);
            //currentBehavior = bh;
            changeBehavior(bh);
            speed = 0.0f;
            maxTurnSpeed = .1f;
            
        }
        public override void update(int dTime)
        {
            Vector2 totalForce = new Vector2(0, 0);
            totalForce += followPath();
            
            //if (totalForce.Length()<maxForce)
            tryOrientation(totalForce);

            base.update(dTime);
        }
        
    }
}
